package com.levi.threadutils.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.levi.threadutils.domain.User;

import java.util.List;

/**
 * @description:
 * @author: shentong
 * @create: 2022-01-04 12:45
 **/
public interface UserService extends IService<User>{

    /**
     * 多线程导入，线程数量不固定，最大数量通过信号量进行限制
     * @throws Exception
     */
    public void importData() throws Exception;

    void importData1() throws Exception;

    public Integer insertDB(List<User> userList);

    public void importsingle();

    public Integer datacount();

    public List<User> userList();
}
